#ifndef						__ENCODER_H__
# define					__ENCODER_H__

# include					<iostream>
# include					"opus.h"
# include					"IEncoder.h"
# include					"IOrder.h"

# define PACKET_SIZE		150

class						Encoder : public IEncoder
{
public:
	Encoder();
	~Encoder();

private:
	OpusEncoder				*_enc;
	int						_channel;

public:
	virtual void			init();
	virtual void			encode(ISoundPacket*, IEncodedSoundPacket*);
	virtual void			encode(ISoundPacket*, IOrder*);
};

#endif						// !__ENCODER_H__
